<!--左侧导航开始-->
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" th:src="@{/img/profile_small.jpg}" /></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                        <span class="block m-t-xs"><strong class="font-bold">Beaut-zihan</strong></span>
                        <span class="text-muted text-xs block" th:text="${user.username}">超级管理员<b class="caret"></b></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a class="J_menuItem" href="form_avatar.html">修改头像</a>
                        </li>
                        <li><a class="J_menuItem" href="profile.html">个人资料</a>
                        </li>
                        <li><a class="J_menuItem" href="contacts.html">联系我们</a>
                        </li>
                        <li><a class="J_menuItem" href="mailbox.html">信箱</a>
                        </li>
                        <li class="divider"></li>
                        <li><a th:href="@{/logOut}">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">zdog</div>
            </li>

            <li th:each="menu : ${titles}">
                <a class="J_menuItem" th:href="@{${menu.url}}">
                    <i class="fa fa fa-bar-chart-o" th:class="${menu.icon}"></i>
                    <span class="nav-label" th:text="${menu.name}"></span>
                    <span th:if="${not #lists.isEmpty(menu.children)}" class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li th:each="cmenu : ${menu.children}">
                        <a class="J_menuItem" th:text="${cmenu.name}" th:href="@{${cmenu.url}}"></a>
                    </li>
                </ul>
            </li>

        </ul>
    </div>
</nav>
<!--左侧导航结束-->